#include <iostream>
using namespace std;
int n;
int main(){
	cin >> n;
	if (n & 1 == 1) cout << "NO" << endl;
	else cout << "YES" << endl;
	return 0;
}
